package com.oedtech.esl.model.SNModel;

import com.oedtech.esl.model.esl.Ap;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @Author QiuLongYu
 * @Date 2019/8/7
 */
public class SNAp {
    private	String	ap_id		;	//	基站ID
    private	String	vendor_id		;	//	供应商标识
    private	String	status		;	//	基站状态
    private	String	listen_port		;	//	监听ap的端口
    private	String	online_begin_time		;	//	ap上线时间
    private	String	version		;	//	ap版本号
    private	String	work_mode		;	//	ap当前状态
    private	String	mac		;	//	ap的mac地址
    private	String	last_work_time		;	//	最后一次工作时间
    private	String	netmask		;	//	子网掩码
    private	String	ip		;	//	ap的ip地址
    private	String	sn		;	//	ap的序列号
    private	String	gateway		;	//	ap的网关
    private	String	desc		;	//	ap的描述信息
    private	String	channel		;	//	当前为该基站分配的信道

    public SNAp() {
    }

    public SNAp(Ap ap,String vendorId,String port) {
        this.ap_id = ap.getApId();
        this.vendor_id = vendorId;
        this.status = ap.getStatus();
        this.listen_port = port;
        this.online_begin_time = ap.getOnlineBeginTime().getTime()+"";
        this.version = ap.getVersion();
        this.work_mode = ap.getWorkMode();
        this.mac = ap.getMac();
        this.last_work_time = ap.getLastWorkTime().getTime()+"";
        this.netmask = ap.getNetmask();
        this.ip = ap.getIp();
        this.sn = ap.getSn();
        this.gateway = ap.getGateway();
        this.desc = ap.getDesc();
        this.channel = ap.getChannel();
    }

    public String getAp_id() {
        return ap_id;
    }

    public void setAp_id(String ap_id) {
        this.ap_id = ap_id;
    }

    public String getVendor_id() {
        return vendor_id;
    }

    public void setVendor_id(String vendor_id) {
        this.vendor_id = vendor_id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getListen_port() {
        return listen_port;
    }

    public void setListen_port(String listen_port) {
        this.listen_port = listen_port;
    }

    public String getOnline_begin_time() {
        return online_begin_time;
    }

    public void setOnline_begin_time(String online_begin_time) {
        this.online_begin_time = online_begin_time;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getWork_mode() {
        return work_mode;
    }

    public void setWork_mode(String work_mode) {
        this.work_mode = work_mode;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getLast_work_time() {
        return last_work_time;
    }

    public void setLast_work_time(String last_work_time) {
        this.last_work_time = last_work_time;
    }

    public String getNetmask() {
        return netmask;
    }

    public void setNetmask(String netmask) {
        this.netmask = netmask;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getGateway() {
        return gateway;
    }

    public void setGateway(String gateway) {
        this.gateway = gateway;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }
}
